﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OutMatReturnView.aspx.cs"
    Inherits="BySoft.Web.Site.OutSource.OutMatReturnView" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        });

        function Refreashtab() {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        }
    </script>

    <h1 class="tit">委外 >> <a href="OutMatReturnList.aspx">委外件退料</a> >> 查看</h1>

    <div class="tableStyle2">
        <table cellpadding="0" cellspacing="0" id="tBase" runat="server">
             <tr>
                        <th class="left2">表单号码：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly  ui-widget-content ui-corner-all " ID="lblBillID" runat="server"></asp:Label>
                        </td>
                        <th class="left2">日期：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly  ui-widget-content ui-corner-all " ID="lblBillDate" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">委外指令单号：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtOutOrderID" runat="server" MaxLength="50" ReadOnly="true" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>

                            <asp:HiddenField ID="hidOutOrderID" runat="server" />

                          
                        </td>
                        <th width="20%">制造号码：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtWorkOrderNo" ReadOnly="true" runat="server" MaxLength="50" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">排程单号：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtScheduleID" ReadOnly="true" runat="server" MaxLength="50" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                        </td>

                        <th width="20%">委外厂商：
                        </th>
                        <td width="30%">

                            <asp:HiddenField ID="hidSupplierID" runat="server" />
                            <asp:TextBox ID="txtSupplierName" runat="server" MaxLength="50" ReadOnly="true" CssClass="text ui-widget-content ui-corner-all"
                                Width="90%"></asp:TextBox>

                        </td>
                    </tr>
        </table>
    </div>
    <div class="tableStyle">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">明细</a></li>
            </ul>
            <div id="tabs-1" class="tableStyle">
                <div class="divscroll">
                    <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"  AutoGenerateColumns="false" BorderWidth="1" BorderColor="#c0c0c0"
                                AllowCascade="false">
                                <Columns>
                                    <asp:TemplateField HeaderText="序号">
                                        <ItemTemplate>
                                            <%# Container.DisplayIndex+1 %>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="OutOrderDetailID" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden" HeaderStyle-CssClass="Hidden">
                                        <ItemTemplate>
                                            <asp:Label ID="lblOutOrderDetailID" Text='<%#Eval("OutOrderDetailID") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            原料编号
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaterialID" runat="server" Text='<%# Eval("MaterialID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>类别</HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaterialTypeName" runat="server" Text='<%#  Eval("MaterialTypeName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                                    <asp:TemplateField>
                                        <HeaderTemplate>品名</HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblsMaterialName" runat="server" Text='<%#  Eval("MaterialName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField>
                                        <HeaderTemplate>规格</HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="txtSpecifications" runat="server" Text='<%#  Eval("Specifications") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField>
                                        <HeaderTemplate>单位</HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="txtUnit" runat="server" Text='<%#  Eval("Unit") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            发料数量
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblSendNum" runat="server" Text='<%#Eval("SendNum") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            可退数量
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblCanBackNum" runat="server" Text='<%#Eval("CanBackNum") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            退料数量
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label CssClass="fullWidth" ID="txtBackNum" Width="80px" runat="server" Text='<%#Eval("Nums") %>'></asp:Label>

                                       </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            退料原因
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label CssClass="fullWidth" ID="txtReturnReason" Width="150px" runat="server" Text='<%#Eval("ReturnReason") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            赔偿金额
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label CssClass="fullWidth" ID="txtCompensateAmount" Width="150px" runat="server" Text='<%#Eval("CompensateAmount") %>'></asp:Label>
                                            

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                   
                                </Columns>
                            </asp:SGridView>
                </div>
            </div>
        </div>
    </div>

    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
            <tr>
                <td colspan="4">
                    <label class="btnStylec png_bg">
                        <input type="button" id="Button2" value="返回" runat="server" onclick="window.location = 'OutMatReturnList.aspx'" />
                    </label>
                </td>
            </tr>
        </table>
    </div>

</asp:Content>


